package com.unalm.examensustitutorio.util.entity;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;


/**
 * The persistent class for the tb_curso database table.
 * 
 */
@Entity
@Table(name="tb_curso")
public class ECurso implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="COD_CURSO")
	private String str_codCurso;

	@Column(name="DESC_CURSO")
	private String str_descCurso;

	//bi-directional many-to-one association to EDetalleNota
	@OneToMany(mappedBy="tbCurso")
	private List<EDetalleNota> tbDetalleNotas;

	//bi-directional many-to-one association to EInscripcion
	@OneToMany(mappedBy="tbCurso")
	private List<EInscripcion> tbInscripcions;

    public ECurso() {
    }

	public String getStr_codCurso() {
		return this.str_codCurso;
	}

	public void setStr_codCurso(String str_codCurso) {
		this.str_codCurso = str_codCurso;
	}

	public String getStr_descCurso() {
		return this.str_descCurso;
	}

	public void setStr_descCurso(String str_descCurso) {
		this.str_descCurso = str_descCurso;
	}

	public List<EDetalleNota> getTbDetalleNotas() {
		return tbDetalleNotas;
	}

	public void setTbDetalleNotas(List<EDetalleNota> tbDetalleNotas) {
		this.tbDetalleNotas = tbDetalleNotas;
	}

	public List<EInscripcion> getTbInscripcions() {
		return tbInscripcions;
	}

	public void setTbInscripcions(List<EInscripcion> tbInscripcions) {
		this.tbInscripcions = tbInscripcions;
	}


	
}